 {include file="public/header"}
<div class="wrapper wrapper-content animated fadeInRight">
  <div class="ibox-content"  style="display: inline-block;width:100%;">
    <div class="col-md-1" style="margin-top: 10px;"> <a href="{:url('Authrule/add')}" class="btn  btn-danger  btn-sm"><i class="glyphicon glyphicon-plus"></i>添加</a>
      <!--	<button type="button" class="btn btn-default"><i class="glyphicon glyphicon-trash"></i>删除</button>-->
    </div>
    <main class="ibox-content" style="margin-top: 60px;">
    <form action="" method="post" >
      <table class="table table-bordered  mb-15 mt-15">
        <thead>
          <tr>
            <th class="text-center col-md-1">ID</th>
            <th class="text-center col-md-1">排序</th>
            <th class="text-center col-md-2">权限名称</th>
            <th class="text-center col-md-2">控/方</th>
            <th class="text-center col-md-1">级别</th>
            <th class="text-center col-md-2">操作</th>
          </tr>
        </thead>
        <tbody>
        
        {volist name="authruleRes" id="authrule"}
        <tr>
          <td class="text-center">{$authrule.id}</td>
          <td class="text-center"><input name="{$authrule.id}" type="text" style="width: 50px;
                                text-align: center;" value="{$authrule.sort}">
          </td>
          <td>
            {$authrule.title} </td>
          <td class="text-center">{$authrule.name}</td>
          <td class="text-center">{$authrule.level+1}级</td>
          <!--    <td class="text-center">
                                <a href="{:url('Authrule/edit',array('id'=>$authrule['id']))}">编辑</a>
                                <a href="{:url('del',array('id'=>$authrule['id']))}">删除</a>
                            </td>
                            -->
          <td style="text-align:center">
          	<a class="btn btn-warning btn-xs"  href="{:url('Authrule/edit',array('id'=>$authrule['id']))}">
          		<i class="glyphicon  glyphicon-edit"></i> 编辑</a> <a class="btn  btn-danger btn-xs"  onClick="delM('{:url('del',array('id'=>$authrule['id']))}','{$authrule['id']}');" > 
          	   <i class="glyphicon glyphicon-remove"></i> 回收</a> 
          </td>
        </tr>
        {/volist}
        </tbody>
        
      </table>
      <div>
        <input class="btn btn-primary btn-sm shiny" style="margin-left: 100px; margin-top: 20px;" type="submit" value="排序">
      </div>
    </form>
    </main>
  </div>
</div>
{include file="public/footer"}